package com.glink.manage.mapper;

import com.glink.manage.domain.VehicleAccessRelaBean;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface VehicleAccessRelaMapper extends BaseMapper<VehicleAccessRelaBean>{

    /**
     * 删除准入
     *
     * @param constructionWorkObjId  工程
     * @param participatingUnitObjId 参建单位
     * @param nowDate                当前时间
     */
    Integer delAccessByWorkObjIdAndUnitObjIdAndCycleStartGt(@Param("constructionWorkObjId") String constructionWorkObjId, @Param("participatingUnitObjId") String participatingUnitObjId, @Param("nowDate") String nowDate);

    /**
     * 更新准入
     *
     * @param constructionWorkObjId  工程
     * @param participatingUnitObjId 参建单位
     * @param nowDate                当前时间
     */
    void updateAccessCycleEndByWorkObjIdAndUnitObjIdAndCycleStartGtAndCycleEndLt(@Param("constructionWorkObjId") String constructionWorkObjId, @Param("participatingUnitObjId") String participatingUnitObjId, @Param("nowDate") String nowDate);
}
